package com.intelligent.lock.lock.controller;

import com.intelligent.lock.lock.service.SchedualServiceHi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * HiController
 *
 * @author 徐长乐
 * @date 2019/11/4
 */
@RestController
public class HiController {
    @Autowired
    SchedualServiceHi schedualServiceHi;

    @GetMapping(value = "/hi")
    public String sayHi(@RequestParam String name) {
             System.out.println("aa");
        return schedualServiceHi.sayHiFromClientOne( name );
    }
}
